#import "TGApplicationController.h"

@implementation TGApplicationController

#pragma mark <<initialization>>

- (void) awakeFromNib {
	[mainWindow setDelegate:self];
}

#pragma mark -
#pragma mark <<window operations>>

- (void) windowWillClose:(NSNotification *)notification {
	[NSApp terminate:self];
}

#pragma mark -
#pragma mark <<menu bar events>>

- (IBAction)aboutSelected:(id)sender {
	[aboutWindow makeKeyAndOrderFront:self];
}

- (IBAction)preferencesSelected:(id)sender {
	[[[TGConfigureSheetController controller] configureSheet] makeKeyAndOrderFront:self];
}

@end
